package com.yuou.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuou.mapper.BlogMapper;
import com.yuou.mapper.BlogerMapper;
import com.yuou.model.Bloger;
import com.yuou.service.BlogerService;
@Service
public class BlogerServiceImpl implements BlogerService {


	@Autowired
	private BlogerMapper blogerMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return blogerMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Bloger bloger) {
		return blogerMapper.insert(bloger);
	}

	@Override
	public int insertSelective(Bloger bloger) {
		return blogerMapper.insertSelective(bloger);
	}

	@Override
	public Bloger getByPrimaryKey(Integer id) {
		return blogerMapper.getByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Bloger bloger) {
		return blogerMapper.updateByPrimaryKeySelective(bloger);
	}

	@Override
	public int updateByPrimaryKey(Bloger bloger) {
		return blogerMapper.updateByPrimaryKey(bloger);
	}

	@Override
	public Bloger getUserByLoginName(String name) {
		return blogerMapper.getUserByLoginName(name);
	}

	@Override
	public int updatePassword(Integer id,String password) {
		return blogerMapper.updatePassword(id,password);
	}

	@Override
	public String getPassword(Integer id) {
		return blogerMapper.getPassword(id);
	}

}
